Player

those functions return values about the player, many of those are self-explanatory so i will not describe all of them

P:getHealth(context.player)

P:isSneaking(context.player)

P:isOnGround(context.player)

P:isSwimming(context.player)

P:isClimbing(context.player)

P:isCrawling(context.player)

P:isSubmergedInWater(context.player)

P:isTouchingWater(context.player)

P:isUsingSpyglass(context.player)

P:isUsingRiptide(context.player)

P:getX(context.player)

return the X coordinate of the player

P:getY(context.player)

return the Y coordinate of the player

P:getZ(context.player)

return the Z coordinate of the player

P:getXSpeed(context.player)

return the speed of the player while running in the X coordinate

P:getYSpeed(context.player)

return the speed of the player while falling or jumping

P:getZSpeed(context.player)

return the speed of the player while running in the Z coordinate

P:getSpeed(context.player)

return the player speed

P:isUsingItem(context.player)

P:getYaw(context.player)

P:getPitch(context.player)

P:getMainItem(context.player)

return the item in the main hand

P:getOffhandItem(context.player)

return the item in the off hand

P:getActiveHand(context.player)

P:getAge(context.player)

P:isItemCoolingDown(context.item, context.player)

P:getBlockBelow(context.player, int steps)

steps refer to the vertical distance between the block you want to detect and the player, starting from the legs

P:getBlockAbove(context.player, int steps)

steps refer to the vertical distance between the block you want to detect and the player, starting from the head

P:hasVehicle(context.player, int steps)

back to index